
<div id="doctorEditDlg" class="easyui-dialog" title="设置兽医信息"
	style="width: 400px; height: 300px; padding: 10px"
	data-options="
            	closable : false,
            	closed : true,
                iconCls: 'icon-save',
                buttons: '#dlg-buttons',
                onOpen : initDoctorEditDlg">
	<form id="doctorFormEdit" method="post" action="${contextPath}/doctor/updateDoctor"
		loadAction="${contextPath}/doctor/getDoctor">
		<table align="center" cellpadding="8" style="width: 70%">
			<tr>
				<td>描述</td>
				<td>
					<div>
						<input class="easyui-textbox mediumInput" type="text"
							name="description" />
					</div>
				</td>
			</tr>
		</table>
		<input type="hidden" id="doctorId" name="uid" value="">
	</form>
</div>
<div id="dlg-buttons">
	<a href="javascript:void(0)" data-options="iconCls:'icon-ok'"
		class="easyui-linkbutton" onclick="saveDoctorEditDlg()">保存</a> <a
		href="javascript:void(0)" data-options="iconCls:'icon-cancel'"
		class="easyui-linkbutton"
		onclick="javascript:$('#doctorEditDlg').dialog('close')">取消</a>
</div>
<script>

	function saveDoctorEditDlg() {
		BaseJs.submitForm("#doctorFormEdit", function(rData) {
			$('#doctorEditDlg').dialog('close');
		});
	}
	function initDoctorEditDlg() {
		
		var doctorId = $("#doctorId").val();

		$("#doctorFormEdit").form('clear');
		$("#doctorId").val(doctorId);
		
		if(doctorId == null || doctorId == "") {
			alert("获取错误");
			return ;
		}

		$("#doctorEditDlg").attr("title","设置兽医信息(ID = " + doctorId+"")
		
		BaseJs.setFormByUrl("#doctorFormEdit", {
			uid : doctorId
		});
	return false;
	}



</script>

